<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<NerdDinner.Web.Models.Data.Dinner>" %>

<% if (Model.HasUserRsvped(Context.User.Identity.Name)) { %> 

    <%= Html.ActionLink("Edit Dinner", "Edit", new { number=Model.DinnerId })%>
    |
    <%= Html.ActionLink("Delete Dinner", "Delete", new { number=Model.DinnerId })%>    

<% } %>